package com.ruoyi.web.controller.mall.mallService.service.impl;

import com.ruoyi.web.controller.mall.mallService.domain.MallService;
import com.ruoyi.web.controller.mall.mallService.mapper.MallServiceMapper;
import com.ruoyi.web.controller.mall.mallService.service.IMallServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 商城关于我们Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-01-18
 */
@Service
public class MallServiceServiceImpl implements IMallServiceService 
{
    @Autowired
    private MallServiceMapper mallServiceMapper;

    /**
     * 查询商城关于我们
     * 
     * @param id 商城关于我们ID
     * @return 商城关于我们
     */
    @Override
    public MallService selectMallServiceById(String id)
    {
        return mallServiceMapper.selectMallServiceById(id);
    }

    /**
     * 查询商城关于我们列表
     * 
     * @param mallService 商城关于我们
     * @return 商城关于我们
     */
    @Override
    public List<MallService> selectMallServiceList(MallService mallService)
    {
        return mallServiceMapper.selectMallServiceList(mallService);
    }

    /**
     * 新增商城关于我们
     * 
     * @param mallService 商城关于我们
     * @return 结果
     */
    @Override
    public int insertMallService(MallService mallService)
    {
        return mallServiceMapper.insertMallService(mallService);
    }

    /**
     * 修改商城关于我们
     * 
     * @param mallService 商城关于我们
     * @return 结果
     */
    @Override
    public int updateMallService(MallService mallService)
    {
        return mallServiceMapper.updateMallService(mallService);
    }

    /**
     * 删除商城关于我们对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteMallServiceByIds(String[] ids)
    {
        return mallServiceMapper.deleteMallServiceByIds(ids);
    }

    /**
     * 删除商城关于我们信息
     * 
     * @param id 商城关于我们ID
     * @return 结果
     */
    @Override
    public int deleteMallServiceById(String id)
    {
        return mallServiceMapper.deleteMallServiceById(id);
    }
}
